import {createRouter, createWebHistory,RouteRecordRaw} from 'vue-router'

const routes: Array<RouteRecordRaw> = [
    //注册页面
    {
        path: '/',
        component: () => import('../view/UserEnroll.vue')
    },
    //登录页面
    {
        path: '/UserLogin',
        component: () => import('../view/UserLogin.vue')
    },
    //用户登录列表页面
    {
        path: '/UserShow',
        component: () => import('../view/UserShow.vue')
    },
    //理财登录页面
    {
        path: '/FinanLogin',
        component: () => import('../view/FinanLogin.vue')
    },
    //理财添加页面
    {
        path: '/FinanAdd',
        component: () => import('../view/FinanAdd.vue')
    },
    //理财列表页面
    {
        path: '/FinanShow',
        component: () => import('../view/FinanShow.vue')
    },
    //借款列表页面(管理员)
    {
        path: '/BorrowAdminShow',
        component: () => import('../view/BorrowAdminShow.vue')
    },
    //借款列表页面(用户)
    {
        path: '/BorrowUserShow',
        component: () => import('../view/BorrowUserShow.vue')
    },
    //借款登录页面
    {
        path: '/BorrowLogin',
        component: () => import('../view/BorrowLogin.vue')
    },
    //借款添加页面
    {
        path: '/BorrowUserAdd',
        component: () => import('../view/BorrowUserAdd.vue')
    }
]
const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router